#-*-encoding=utf-8-*-
title=u"""员工设备购置单"""
description=u"""None"""
displayed_columns=[]
facetag = u"""None"""

fields=(
    PersonSelectField(
        title=u'申请人',
        multiple_selection=False,
        selectable_object='persononly',
        write_condition=u'',
        default_value_exp=u'[]',
        name=u'name'
),
    DateField(
        minutestep=5,
        title=u'申请日期',
        showtime=False,
        write_condition=u'',
        default_value_exp=u'datetime.datetime.today()',
        name=u'applicationDate'
),
    GrowingTableField(
        title=u'购置物品',
        write_condition=u'',
        default_value_exp=u'[]',
        name=u'items'
,
fields=[
    TextLineField(
        title=u'物品名称',
        write_condition=u'',
        size=18,
        default_value_exp=u'""',
        name=u'items_name'
),
    IntegerField(
        maxval=10000,
        title=u'物品数量',
        minval=0,
        write_condition=u'',
        size=18,
        default_value_exp=u'0',
        name=u'items_number'
),
    TextField(
        rows=3,
        title=u'备注',
        cols=10,
        write_condition=u'',
        default_value_exp=u'""',
        name=u'note'
)
]
)
,)

fields_validation_script=ur""""""
